(function(window,undefined){
	var backgroundObj=cc.Sprite.extend({
		ctor:function(opts){
			this.name=opts.name;
			this.initWithTexture(cc.TextureCache.getInstance().addImage(opts.filename),opts.rect);
			this.setContentSize(opts.size);
		}
	});
	window.backgroundObj=backgroundObj;
})(window);